x1,y1 = map(float,input().split())
x2,y2 = map(float,input().split())
len = ((x1-x2) ** 2 + (y1-y2) ** 2) ** 0.5
print(format(len,".3f"))